<?php

function profile_district_validation($form) {
  chkbadchar($form['field_dis_area']['und'][0]['value']['#value'], $form['field_dis_area']['und'][0]['value']['#title'], 'field_dis_area');
  chkbadchar($form['field_dis_population']['und'][0]['value']['#value'], $form['field_dis_population']['und'][0]['value']['#title'], 'field_dis_population');
  chkbadchar($form['title']['#value'], $form['title']['#title'], 'title');
  chkbadchar($form['field_dis_history']['und'][0]['value']['#value'], $form['field_dis_history']['und'][0]['value']['#title'], 'field_dis_history');
  chkbadchar($form['field_dis_peopleculture']['und'][0]['value']['#value'], $form['field_dis_peopleculture']['und'][0]['value']['#title'], 'field_dis_peopleculture');
  chkbadchar($form['field_dis_languages']['und'][0]['value']['#value'], $form['field_dis_languages']['und'][0]['value']['#title'], 'field_dis_languages');
  chkbadchar($form['field_dist_url']['und'][0]['value']['#value'], $form['field_dist_url']['und'][0]['value']['#title'], 'field_dist_url');
  chkbadchar($form['field_dis_administrativesetup']['und'][0]['value']['#value'], $form['field_dis_administrativesetup']['und'][0]['value']['#title'], 'field_dis_administrativesetup');
  chkbadchar($form['field_dis_education']['und'][0]['value']['#value'], $form['field_dis_education']['und'][0]['value']['#title'], 'field_dis_education');
  chkbadchar($form['field_dis_health']['und'][0]['value']['#value'], $form['field_dis_health']['und'][0]['value']['#title'], 'field_dis_health');
  chkbadchar($form['field_dis_agriculture']['und'][0]['value']['#value'], $form['field_dis_agriculture']['und'][0]['value']['#title'], 'field_dis_agriculture');
  chkbadchar($form['field_dis_irrigation']['und'][0]['value']['#value'], $form['field_dis_irrigation']['und'][0]['value']['#title'], 'field_dis_irrigation');
  chkbadchar($form['field_dis_industry']['und'][0]['value']['#value'], $form['field_dis_industry']['und'][0]['value']['#title'], 'field_dis_industry');
  chkbadchar($form['field_dis_transport']['und'][0]['value']['#value'], $form['field_dis_transport']['und'][0]['value']['#title'], 'field_dis_transport');
  chkbadchar($form['field_dis_communication']['und'][0]['value']['#value'], $form['field_dis_communication']['und'][0]['value']['#title'], 'field_dis_communication');
  chkbadchar($form['field_dis_touristplaces']['und'][0]['value']['#value'], $form['field_dis_touristplaces']['und'][0]['value']['#title'], 'field_dis_touristplaces');
}
